<template>
    <div>
        <h4>-----Son-----</h4>
        <button @click="addNum">{{num}}</button>
    </div>
</template>

<script>
export default {
    name: "Son",
    inject: ['num', 'addNum']
}
</script>

<style scoped>

</style>